chrome.extension.onMessage.addListener(
	function(request, sender, sendResponse) {
		var RefreshTime = parseInt( localStorage['RefreshTime'] ? localStorage['RefreshTime'] : '5' );
        var UrlInput = localStorage['UrlInput'] ? localStorage['UrlInput'] : '';
        var RefreshHost = localStorage['RefreshHost'] ? localStorage['RefreshHost'] : '';
        var AlwaysRefresh = localStorage['AlwaysRefresh'] == 'true' ? true : false;
    	sendResponse({
    		RefreshTime: RefreshTime,
    		UrlInput:UrlInput,
            sender:sender,
            RefreshHost:RefreshHost,
            AlwaysRefresh:AlwaysRefresh
    	});	
	}
);